import request from '@/utils/request'

/**
 * 根据年月日查排班
 * @param {year,month,day,deptId} data 
 * @returns 
 */
export function getDutyListByDate(query) {
  return request({
    url: '/duty/member/date',
    method: 'get',
    params: query,
  })
}

/**
 * 根据日期起止查排班
 * @param {*} startDate 
 * @param {*} endDate 
 * @returns 
 */
export function getDutyListByRound(startDate, endDate, query) {
  return request({
    url: `/duty/member/time/${startDate}/${endDate}`,
    method: 'get',
    params: query
  })
}